module et{
    export class EntitySceneFactory
    {
        public static CreateScene(zone:number,sceneType:SceneType,name:string,parent:Entity):Scene
        public static CreateScene(zone:number,sceneType:SceneType,name:string,parent:Entity,id:Long):Scene
        public static CreateScene(zone:number,sceneType:SceneType,name:string,parent:Entity = null,id?:Long, instanceId?:Long,):Scene
        {
            if(!id){
                id=IdGenerater.GenerateId();
            }
            let scene = new Scene(id, zone, sceneType, name,instanceId);
            scene.isRegister = true;
            scene.parent = parent;
            scene.domain = scene;
    
            return scene;
        }
    }
}
